﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UmlDesigner.Gui
{
    internal partial class RenameDiagramForm : Form
    {
        internal RenameDiagramForm(string oldDialogName)
        {
            InitializeComponent();

            textBox1.Text = oldDialogName;
        }

        private string diagramName;
        internal string DiagramName
        {
            get
            {
                return diagramName;
            }

            set
            {
                diagramName = value;
            }
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            DiagramName = textBox1.Text;
        }
    }
}
